home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4035 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  913 b 

  1. Path: lion.de!not-for-mail
  2. From: urbain@lucky.lion.de (Juri Urbainczyk)
  3. Newsgroups: comp.unix.solaris,comp.unix.programmer,comp.lang.c
  4. Subject: Re: inline code
  5. Date: 1 Feb 1996 14:15:55 +0100
  6. Organization: Lion GmbH, Bochum, Germany
  7. Distribution: inet
  8. Message-ID: <4eqeeb$712@lucky.lion.de>
  9. References: <lbecker-3101961334210001@206.161.148.20>
  10. NNTP-Posting-Host: lucky.lion.de
  11.  
  12.  
  13. Hello.
  14.  
  15. In article <lbecker-3101961334210001@206.161.148.20>, lbecker@avtec.com (Lynn Becker) writes:
  16. |> Hi,
  17. |> Does the gcc accept this? Here is a snippet of the code I am using.
  18. |> 
  19. |> inline double mathFindVectorMag( CARTESIAN_STRUCT *   pVector )
  20. |> {
  21. |>    return sqrt (pVector->X * pVector->X + pVector->Y * pVector->Y + 
  22. |>                pVector->Z * pVector->Z);
  23. |> }
  24. |> 
  25. |> The sun compiler gives me an error
  26. |> 
  27.  
  28. I believe, the gcc can compile it.  Make sure you disabled the
  29. ANSI-Option.  It's just word of mouth...
  30.  
  31. -J-
  32.